package com.ruoyi.common.core.domain.base.datam;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 地块信息登记对象 wi_land_b
 * 
 * @author hwd
 * @date 2023-02-16
 */
@Data
@TableName("wi_land_b")
public class WiLandB extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地块编码*/
    private String landCd;

    /** 地块名称 */
    @Excel(name = "地块名称")
    private String landNm;

    /** 土地性质 */
    @Excel(name = "土地性质", readConverterExp = "0=二轮承包土地内,1=二轮承包土地外,2=水稻,3=未定")
    private String landAttr;

    /** 灌水断面 */
    private String crossCd;

    /** 灌水断面 */
    @Excel(name = "灌水断面")
    private String crossNm;

    /** 种植作物 */
    private String cropCd;

    /** 种植作物 */
    @Excel(name = "种植作物")
    private String cropNm;

    /** 灌溉方式 */
    @Excel(name = "灌溉方式", readConverterExp = "0=常规灌溉,1=膜上灌溉,2=喷灌,3=滴灌,4=其他")
    private String irrMode;

    /** 地块状态 */
    @Excel(name = "地块状态", readConverterExp = "0=正常,1=虚拟,2=废弃")
    private String landStatus;

    /** 地块面积 */
    @Excel(name = "地块面积")
    private BigDecimal landSize;

    /** 备注 */
    @Excel(name = "备注")
    private String landMark;

    public void setLandCd(String landCd) 
    {
        this.landCd = landCd;
    }

    public String getLandCd() 
    {
        return landCd;
    }
    public void setLandNm(String landNm) 
    {
        this.landNm = landNm;
    }

    public String getLandNm() 
    {
        return landNm;
    }
    public void setLandAttr(String landAttr) 
    {
        this.landAttr = landAttr;
    }

    public String getLandAttr() 
    {
        return landAttr;
    }
    public void setCrossCd(String crossCd) 
    {
        this.crossCd = crossCd;
    }

    public String getCrossCd() 
    {
        return crossCd;
    }
    public void setCropCd(String cropCd) 
    {
        this.cropCd = cropCd;
    }

    public String getCropCd() 
    {
        return cropCd;
    }
    public void setIrrMode(String irrMode) 
    {
        this.irrMode = irrMode;
    }

    public String getIrrMode() 
    {
        return irrMode;
    }
    public void setLandStatus(String landStatus) 
    {
        this.landStatus = landStatus;
    }

    public String getLandStatus() 
    {
        return landStatus;
    }
    public void setLandSize(BigDecimal landSize)
    {
        this.landSize = landSize;
    }

    public BigDecimal getLandSize()
    {
        return landSize;
    }
    public void setLandMark(String landMark) 
    {
        this.landMark = landMark;
    }

    public String getLandMark() 
    {
        return landMark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("landCd", getLandCd())
            .append("landNm", getLandNm())
            .append("landAttr", getLandAttr())
            .append("crossCd", getCrossCd())
            .append("cropCd", getCropCd())
            .append("irrMode", getIrrMode())
            .append("landStatus", getLandStatus())
            .append("landSize", getLandSize())
            .append("landMark", getLandMark())
            .toString();
    }
}
